home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / NuBus.a < prev    next >
Text File  |  1996-05-01  |  2KB  |  83 lines

  1. ;
  2. ;    File:        NuBus.a
  3. ;
  4. ;    Contains:    NuBus I/O Interfaces 
  5. ;
  6. ;    Version:    Technology:    xxx Put version info here xxx
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__NUBUS__') = 'UNDEFINED' THEN
  19. __NUBUS__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__SLOTS__') = 'UNDEFINED' THEN
  25.     include 'Slots.a'
  26.     ENDIF
  27.     IF FOR_SYSTEM8_PREEMPTIVE THEN
  28. ;
  29. ; *
  30. ; * kSpaceCode -
  31. ; *
  32. ; * Bitfield definitions for the "reg" and "assigned-adderesses"
  33. ; * properties found in the device portion of the NameRegistry
  34. ; *
  35. ;
  36.  
  37. kSpaceCodeMask                    EQU        $03000000
  38. kSpaceCodeMem64                    EQU        $03000000
  39. kSpaceCodeMem32                    EQU        $02000000
  40. kSpaceCodeIO                    EQU        $01000000
  41. kSpaceCodeConfig                EQU        $00000000
  42. kDeviceCodeMask                    EQU        $000000FF
  43. ; typedef UInt32                         EncodeInt
  44.  
  45. EncodePhys                RECORD 0
  46. hi                         ds.l    1                ; offset: $0 (0)
  47. mid                         ds.l    1                ; offset: $4 (4)
  48. lo                         ds.l    1                ; offset: $8 (8)
  49. sizeof                     EQU *                    ; size:   $C (12)
  50.                         ENDR
  51. EncodeSize                RECORD 0
  52. hi                         ds.l    1                ; offset: $0 (0)
  53. lo                         ds.l    1                ; offset: $4 (4)
  54. sizeof                     EQU *                    ; size:   $8 (8)
  55.                         ENDR
  56. ;
  57. ; * PropertyReg & PropertyAssignedAddresses -
  58. ; *
  59. ; * The struct format definitions for the "reg" and
  60. ; * "assigned-addresses" NameRegistry properties.
  61. ; *
  62. ;
  63. PropertyReg                RECORD 0
  64. phys                     ds        EncodePhys        ; offset: $0 (0)
  65. size                     ds        EncodeSize        ; offset: $C (12)
  66. sizeof                     EQU *                    ; size:   $14 (20)
  67.                         ENDR
  68. MotherboardReg            RECORD 0
  69. base                     ds.l    1                ; offset: $0 (0)
  70. length                     ds.l    1                ; offset: $4 (4)
  71. sizeof                     EQU *                    ; size:   $8 (8)
  72.                         ENDR
  73. ;
  74. ; * Family service category and name declarations
  75. ; * (that's it for now)
  76. ; *
  77. ;
  78.  
  79. kServiceCategoryNuBus            EQU        'nbus'
  80.     ENDIF
  81.     ENDIF ; __NUBUS__ 
  82.  
  83.